﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Threading;

namespace WCFMINERP.Update
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            bool bCreatedNew;
            Mutex m = new Mutex(false, "WCFMINERP", out bCreatedNew);

            if (bCreatedNew)
            {              
                Application.Run(new FrmLogin());
            }
            else
            {
                MessageBox.Show("本程序已运行，请不要重复打开");
            }
            //Application.Run(new FrmLogin());
        }
    }
}
